package com.sugar.follow.up.module.business.dal.mysql.publicityeducationcls;

import java.util.*;

import com.sugar.follow.up.framework.common.pojo.PageResult;
import com.sugar.follow.up.framework.mybatis.core.query.LambdaQueryWrapperX;
import com.sugar.follow.up.framework.mybatis.core.mapper.BaseMapperX;
import com.sugar.follow.up.module.business.dal.dataobject.publicityeducationcls.PublicityEducationClsDO;
import org.apache.ibatis.annotations.Mapper;
import com.sugar.follow.up.module.business.controller.admin.publicityeducationcls.vo.*;

/**
 * 宣教分类 Mapper
 *
 * @author Ysugar
 */
@Mapper
public interface PublicityEducationClsMapper extends BaseMapperX<PublicityEducationClsDO> {

    default PageResult<PublicityEducationClsDO> selectPage(PublicityEducationClsPageReqVO reqVO) {
        return selectPage(reqVO, new LambdaQueryWrapperX<PublicityEducationClsDO>()
                .likeIfPresent(PublicityEducationClsDO::getName, reqVO.getName())
                .betweenIfPresent(PublicityEducationClsDO::getCreateTime, reqVO.getCreateTime())
                .orderByDesc(PublicityEducationClsDO::getId));
    }

}